# $Id: PKGBUILD 178952 2013-03-01 10:19:46Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=cagibi
pkgver=0.2.0
pkgrel=3
pkgdesc='A cache/proxy daemon for SSDP (the discovery part of UPnP)'
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kdesupport/cagibi/'
license=('LGPL')
depends=('qt4')
makedepends=('cmake' 'automoc4')
source=("http://download.kde.org/stable/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('af66d89337ef80e8a868d3bb9dd92328')

build() {
  . /etc/profile.d/qt4.sh

  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}
